<html>
<head><meta charset="utf-8"><title>Adding bors to repo is confusing · t-infra · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/index.html">t-infra</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Adding.20bors.20to.20repo.20is.20confusing.html">Adding bors to repo is confusing</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="215246070"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Adding%20bors%20to%20repo%20is%20confusing/near/215246070" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Igor Matuszewski <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Adding.20bors.20to.20repo.20is.20confusing.html#215246070">(Nov 01 2020 at 14:19)</a>:</h4>
<p>I just tried to add two repositories (<a href="https://forge.rust-lang.org/infra/docs/bors.html#adding-a-new-repository-to-bors">https://forge.rust-lang.org/infra/docs/bors.html#adding-a-new-repository-to-bors</a>) to bors and I have to admit that it's really confusing, at least for me, at the moment:</p>
<ol>
<li>multiple definition files that seemingly serve the same purpose</li>
<li>...and each of those is in a different repository</li>
<li>permissions configuration is in the source code rather than a configuration file (so you need to be pointed to it by external forge guide, this applies to each point here)</li>
<li>cfg.production.toml allows for specifying a github org but in practice that's impossible due to current terraform solution</li>
</ol>



<a name="215246126"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Adding%20bors%20to%20repo%20is%20confusing/near/215246126" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Igor Matuszewski <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Adding.20bors.20to.20repo.20is.20confusing.html#215246126">(Nov 01 2020 at 14:20)</a>:</h4>
<p><span class="user-mention" data-user-id="121055">@Pietro Albini</span> is this something me or someone outside of the infra team could help with?</p>



<a name="215247162"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Adding%20bors%20to%20repo%20is%20confusing/near/215247162" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Adding.20bors.20to.20repo.20is.20confusing.html#215247162">(Nov 01 2020 at 14:47)</a>:</h4>
<p>I think the one that has the biggest chance to get fixed is "permissions configuration is in the source code rather than a configuration file" -- it could be possible to move it to <code>config.toml</code> in the team repository</p>



<a name="215247226"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Adding%20bors%20to%20repo%20is%20confusing/near/215247226" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Adding.20bors.20to.20repo.20is.20confusing.html#215247226">(Nov 01 2020 at 14:48)</a>:</h4>
<p>(we'd need to change the <code>Permissions</code> struct to have a <code>bors</code> <code>HashMap</code>, and then add a validation step to make sure all the bors permissions are from allowed repositories)</p>



<a name="215247254"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Adding%20bors%20to%20repo%20is%20confusing/near/215247254" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pietro Albini <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Adding.20bors.20to.20repo.20is.20confusing.html#215247254">(Nov 01 2020 at 14:49)</a>:</h4>
<blockquote>
<p>cfg.production.toml allows for specifying a github org but in practice that's impossible due to current terraform solution</p>
</blockquote>
<p>that's because homu itself supports multiple orgs, it's just that the terraform setup does not</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>